import Vue from 'vue'
import {
  Button
} from 'vant'
import {
  NavBar
} from 'vant';

Vue.use(NavBar);
import {
  Tabbar,
  TabbarItem
} from 'vant';
import {
  Swipe,
  SwipeItem
} from 'vant';

import {
  Grid,
  GridItem
} from 'vant';



Vue.use(Grid);
Vue.use(GridItem);
import {
  Card
} from 'vant';
import {
  Panel
} from 'vant';

import {
  Field
} from 'vant';
import {
  Icon
} from 'vant';
import {
  Rate
} from 'vant';
import {
  Tab,
  Tabs
} from 'vant';
// import {
//   Image as VanImage
// } from 'vant';
// Vue.use(VanImage)
import {
  Lazyload
} from 'vant';
const options = {
  // 引用外部资源
  // loading: 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F01deed576019060000018c1bd2352d.gif&refer=http%3A%2F%2Fimg.zcool.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1621043748&t=c510e7fa1291bc6f9cfb325be7c9a531'

  //引用assets里面的资源 是一个个模块
  // loading: import("../assets/load.gif")

  //引用public 直接从目标文件夹开始写
  loading: "/load.gif"
}
Vue.use(Lazyload, options);

Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Rate);
Vue.use(Icon);
Vue.use(Field);
Vue.use(Panel);
Vue.use(Card);
Vue.use(Swipe);
Vue.use(SwipeItem);

Vue.use(Tabbar);
Vue.use(TabbarItem);

Vue.use(Button)
